//
//  JWShopAdvisoryCell3.m
//  jinwang
//
//  Created by jzb on 2018/4/10.
//  Copyright © 2018年 jzb. All rights reserved.
//

#import "JWShopAdvisoryCell3.h"

@implementation JWShopAdvisoryCell3

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(JWShopAdvisoryModel *)model{
    _model = model;
    self.titleLabel.text = model.article_title;
    self.timeLabel.text = model.create_time;
    self.showLabel.text = [NSString stringWithFormat:@"人气:%@",model.see_num];
    if (model.imgs.count >= 3) {
        [self.imageView1 sd_setImageWithURL:[NSURL URLWithString:model.imgs[0]] placeholderImage:[UIImage imageNamed:@"jw_img_404"]];
        [self.imageView2 sd_setImageWithURL:[NSURL URLWithString:model.imgs[1]] placeholderImage:[UIImage imageNamed:@"jw_img_404"]];
        [self.imageView3 sd_setImageWithURL:[NSURL URLWithString:model.imgs[2]] placeholderImage:[UIImage imageNamed:@"jw_img_404"]];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
